package com.zb.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/7/10 0010
 **/
@Data
@ApiModel("账号信息实体")
public class AccountInfoDto {

    @NotBlank(message = "用户名不能为空")
    @Length(max = 100, message = "用户名称字符长度限制在100个以内")
    @ApiModelProperty(value = "用户名", required = true)
    private String name;

    @Length(max = 100, message = "用户昵称字符长度限制在100个以内")
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户头像")
    private String avatar;
}
